package com.example.test.mo1;
import com.huawei.hiai.pdk.resultcode.HwHiAIResultCode;
import com.huawei.hiai.vision.common.ConnectionCallback;
import com.huawei.hiai.vision.common.VisionBase;
import com.huawei.hiai.vision.common.VisionCallback;
import com.huawei.hiai.vision.common.VisionImage;
import com.huawei.hiai.vision.text.TextDetector;
import com.huawei.hiai.vision.visionkit.common.BoundingBox;
import com.huawei.hiai.vision.visionkit.text.Text;
import com.huawei.hiai.vision.visionkit.text.TextBlock;
import com.huawei.hiai.vision.visionkit.text.TextDetectType;
import com.huawei.hiai.vision.visionkit.text.TextLine;
import com.huawei.hiai.vision.visionkit.text.config.TextConfiguration;
import com.huawei.hiai.vision.visionkit.text.config.VisionTextConfiguration;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class DocumentLearn extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_document_learn);


//        TextDetector mTextDetector = new TextDetector(mContext); // 构造Detector
//        VisionImage image = VisionImage.fromBitmap(bitmap);
//
//        Text result = new Text();
//        VisionTextConfiguration config = new VisionTextConfiguration.Builder()
//                .setAPPType(VisionTextConfiguration.APP_NORMAL)
//                .setProcessMode(VisionTextConfiguration.MODE_IN)
//                .setDetectType(TextDetectType.TYPE_TEXT_DETECT_FOCUS_SHOOT)
//                .setLanguage(TextConfiguration.AUTO).build();
//
//        int result_code = mTextDetector.detect(image, result, null);
    }
}